﻿using System;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Ms
{
    /// <summary>
    /// 作者：黄钧航
    /// 客户：质量分析接口Api dto
    /// </summary>
    public class MsStatisDto
    {
    }

    public class ReportInfo
    {
        /// <summary>
        /// 报告名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        public string TaskId { get; set; }

        /// <summary>
        /// 楼栋名称
        /// </summary>
        public string BuildingName { get; set; }

        /// <summary>
        /// 楼层名称
        /// </summary>
        public string FloorName { get; set; }

        /// <summary>
        /// 测量设备Id
        /// </summary>
        public string DeviceId { get; set; }

        /// <summary>
        /// 报告上传时间
        /// </summary>
        public DateTime UploadedDateTime { get; set; }

        /// <summary>
        /// 报告地址
        /// </summary>
        public string Url { get; set; }
    }

    /// <summary>
    /// 解析json对象
    /// </summary>
    public class BuildingDetail
    {
        /// <summary>
        /// 楼栋
        /// </summary>
        public string Building { get; set; }

        /// <summary>
        /// 层数
        /// </summary>
        public string Floor { get; set; }

        /// <summary>
        /// 交付标准
        /// </summary>
        public string Standard { get; set; }
    }

    public class ProjectQualityStatisDto
    {
        /// <summary>
        /// 项目Id
        /// </summary>
        public Guid ProjectId { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 总测点数
        /// </summary>
        public int TotalPoints { get; set; }

        /// <summary>
        /// 合格点数
        /// </summary>
        public int PassPoints { get; set; }

        /// <summary>
        /// 合格百分比
        /// </summary>
        public string Pass { get; set; }

        /// <summary>
        /// 施工许可证号
        /// </summary>
        public string ConstructionPermitNum { get; set; }

        /// <summary>
        /// 项目详情
        /// </summary>
        public List<BuildingDetail> BuildingDetails { get; set; } = new List<BuildingDetail>();

        /// <summary>
        /// 测量报告列表Url
        /// </summary>
        public List<ReportInfo> MeasuringReports { get; set; }

        /// <summary>
        /// 质量分析报告Excel
        /// </summary>
        public string QualityReportUrl { get; set; }
    }
}